<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/HtmlRepresentation.Master" Inherits="System.Web.Mvc.ViewPage<AltNetUK.Models.Home>" %>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
<h2>Latest News</h2>
<p id='news'><%=this.ViewData.Model.News%></p>
<h2>Announcement</h2>
<p>We are pleased to announce that the 2009 Alt.Net UK Conference will be held over the first weekend of August.</p>
<p>The community has grown since we first started running the Conference in 2008 so this time the event will be run over the entire weekend, bringing together some of the new event formats that are now running in the UK:</p>
<% foreach(Event item in this.ViewData.Model.Schedule) { %>
<div class='vevent'>
    <h3 class='summary'><a class="url" href='<%=new Uri(this.Request.Url, item.Path)%>'><%=Html.Encode(item.Name)%></a></h3>
    <div class='description'><em><%=item.Description%></em></div>
    <p><abbr class='dtstart' title='<%=item.Start%>'><%=item.Start.Date%> from <%=item.Start.Time%></abbr> until <abbr class='dtend' title='<%=item.End%>'><%=item.End.Time%></abbr></p>
    <p><small><a href='http://maps.google.co.uk/maps?q=<%=Url.Encode(item.Address)%>' rel='nofollow'><span class='location'><%=Html.Encode(item.Address)%></span></a></small></p>
</div>
<% } %>
<h3>Staying overnight?</h3>
<p>For anyone who wants to stay at a hotel, the <a href='http://www.novotel.com/gb/hotel-3269-novotel-london-city-south/index.shtml' title='Novotel London City South Homepage' rel='nofollow'>Novotel London City South</a> is opposite the Conchango offices on Southwark Bridge Road.</p>
<h2>Our Hosts</h2>
<ul class='hosts'>
<% foreach(Company company in this.ViewData.Model.Credits.Hosts) { %>
<li class='company'><a href='<%=company.Href %>' title='<%=Html.Encode(company.Logo.Alt) %>' rel='bookmark'><img alt='<%=Html.Encode(company.Logo.Alt) %>' src='<%=company.Logo.Src %>' /></a></li>
<% } %>
</ul>
<h2>Our Sponsors</h2>
<ul class='sponsors'>
<% foreach(Company company in this.ViewData.Model.Credits.Sponsors) { %>
<li class='company'><a href='<%=company.Href %>' title='<%=Html.Encode(company.Logo.Alt) %>' rel='bookmark'><img alt='<%=Html.Encode(company.Logo.Alt) %>' src='<%=company.Logo.Src %>' /></a></li>
<% } %>
</ul>
<h2>Our Supporters</h2>
<ul class='supporters'>
<% foreach(Company company in this.ViewData.Model.Credits.Supporters) { %>
<li class='company'><a href='<%=company.Href %>' title='<%=Html.Encode(company.Logo.Alt) %>' rel='bookmark'><img alt='<%=Html.Encode(company.Logo.Alt) %>' src='<%=company.Logo.Src %>' /></a></li>
<% } %>
</ul>
<h2>The Organisers</h2>
<ul class='organisers'>
<% foreach(Contact contact in this.ViewData.Model.Credits.Organizers) { %>
<li class='contact'>
<% if (string.IsNullOrEmpty(contact.Email) && string.IsNullOrEmpty(contact.Telephone)) { %>
<div class='fn n'>
    <a href='<%=contact.Href %>' rel='bookmark' title='<%=Html.Encode(contact.Name) %>'><span class='given-name'><%=Html.Encode(contact.Name.Given) %></span>&nbsp;<span class='family-name'><%=Html.Encode(contact.Name.Family) %></span></a>
</div>
<% } else { %>
<div class='vcard'>
    <div class='fn n'>
        <a href='<%=contact.Href %>' rel='bookmark' title='<%=Html.Encode(contact.Name) %>'><span class='given-name'><%=Html.Encode(contact.Name.Given) %></span>&nbsp;<span class='family-name'><%=Html.Encode(contact.Name.Family) %></span></a>
    </div>
    <% if(!string.IsNullOrEmpty(contact.Telephone)) { %>
    <div>Telephone <span class='tel'><%=Html.Encode(contact.Telephone)%></span></div>
    <% } %>
    <% if(!string.IsNullOrEmpty(contact.Email)) { %>
    <address title='<%=Html.Encode(contact.Name) %>'><a rel='nofollow' href='mailto:<%=Html.Encode(contact.Email) %>' title='<%=Html.Encode(contact.Name) %>'><span class='email'><%=Html.Encode(contact.Email) %></span></a></address>
    <% } %>
</div>
<% } %>
<div class='twitter'>
    <% if(!string.IsNullOrEmpty(contact.Twitter)) { %>
    <a href='http://twitter.com/<%=Url.Encode(contact.Twitter) %>' rel='nofollow' title='@<%=Html.Encode(contact.Twitter) %>'>twitter.com/<%=Html.Encode(contact.Twitter) %></a>
    <% } %>
</div>
</li>
<% } %>
</ul>
</asp:Content>